#Region "Using directives"
Imports System
Imports System.Collections.Generic
Imports System.ComponentModel
Imports System.Data
Imports System.Drawing
Imports System.Text
Imports System.Windows.Forms
Imports C4F.DevKit.PictureAcquisition
#End Region
Namespace PictureAcquisitionApplication
	Public Partial Class DeviceDetails
	Inherits Form
		#Region "constructor"
		Public Sub New()
			InitializeComponent()
		End Sub
		Public Sub New(ByVal deviceInfo As DeviceInfo)
			InitializeComponent()
			lblFriendlyNameText.Text = deviceInfo.FriendlyName
			lblIdText.Text = deviceInfo.Id
			lblTypeText.Text = deviceInfo.Type.ToString()
		End Sub
#End Region

        Private Sub btnDeviceDetailsOk_Click(ByVal sender As Object, ByVal e As EventArgs) Handles btnDeviceDetailsOk.Click
            Me.Close()
        End Sub
        Private Sub DeviceDetails_KeyDown(ByVal sender As Object, ByVal e As KeyEventArgs) Handles MyBase.KeyDown
            If e.KeyCode = Keys.Escape Then
                Me.Close()
            End If
        End Sub

    End Class
End Namespace
